﻿using System;
using System.Collections;
using UnityEngine;

namespace UniRx.Examples
{
	// Token: 0x020001EB RID: 491
	public class Sample07_OrchestratIEnumerator : MonoBehaviour
	{
		// Token: 0x06000A44 RID: 2628 RVA: 0x00037410 File Offset: 0x00035810
		private IEnumerator AsyncA()
		{
			Debug.Log("a start");
			yield return new WaitForSeconds(3f);
			Debug.Log("a end");
			yield break;
		}

		// Token: 0x06000A45 RID: 2629 RVA: 0x00037424 File Offset: 0x00035824
		private IEnumerator AsyncB()
		{
			Debug.Log("b start");
			yield return new WaitForEndOfFrame();
			Debug.Log("b end");
			yield break;
		}

		// Token: 0x06000A46 RID: 2630 RVA: 0x00037438 File Offset: 0x00035838
		private void Start()
		{
			IDisposable disposable = Observable.FromCoroutine(new Func<IEnumerator>(this.AsyncA), false).SelectMany(new Func<IEnumerator>(this.AsyncB), false).Subscribe<Unit>();
		}
	}
}
